import type { RouteRecordRaw } from 'vue-router'

/**
 * 路由配置
 * @description 所有路由都在这里集中管理
 */
const routes: RouteRecordRaw[] = [
  /**
   * 首页
   */
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/home.vue'),
    meta: {
      title: 'Home',
    },
  },
  {
    path: '/introduction',
    name: 'introduction',
    component: () => import('@/views/introduction.vue'),
    meta: {
      title: 'introduction',
    },
  },
  {
    path: '/work',
    name: 'work',
    component: () => import('@/views/work.vue'),
    meta: {
      title: 'Work',
    },
  },
  {
    path: '/news',
    name: 'news',
    component: () => import('@/views/news.vue'),
    meta: {
      title: 'News',
    },
  },
  {
    path: '/notice',
    name: 'notice',
    component: () => import('@/views/notice.vue'),
    meta: {
      title: 'Notice',
    },
  },
  {
    path: '/promotion',
    name: 'promotion',
    component: () => import('@/views/promotion.vue'),
    meta: {
      title: 'Promotion',
    },
  },
  {
    path: '/service',
    name: 'service',
    component: () => import('@/views/service.vue'),
    meta: {
      title: 'Service',
    },
  },
  {
    path: '/articles',
    name: 'articles',
    component: () => import('@/views/articles.vue'),
    meta: {
      title: 'Articles',
    },
  },
  {
    path: '/article',
    name: 'article',
    component: () => import('@/views/article.vue'),
    meta: {
      title: 'Article',
    },
  },
]

export default routes
